using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using IGlobalist.Cms.Common;

namespace IGlobalist.Cms.Admin.Control
{
    public partial class Header : AdminBaseUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblLoggedInfo.Text = "Guest";
            if (IGlobalistMembership.IsAuthenticate)
            {
                lblLoggedInfo.Text = IGlobalistMembership.Fullname;

            }
            
        }

        protected void lbLogout_Click(object sender, EventArgs e)
        {
            IGlobalistMembership.Logout();
            Response.Redirect(Request.Url.PathAndQuery,true);
        }
    }
}